package com.zhou.framework.pool;

import java.util.concurrent.Callable;

public abstract class SynJob<V> extends Job implements Callable<V> {
    private Object[] args;
    @Override
    public V call() {
        return this.run(args);
    }
    public abstract V run(Object[] args);

    public SynJob() {
    }

    public SynJob(String name) {
        setName(name);
    }
    public SynJob(Object[] args) {
        this.args = args;
    }

    public SynJob(String name, Object[] args) {
        setName(name);
        this.args = args;
    }


}
